package com.bulletelc.apollopre.entity;

import java.io.Serializable;
import java.util.List;

/**
 * author: lhl
 * date  : 2018/01/20
 * desc  : 订单确认界面的数据实体
 */

public class OrderConfirmBean implements Serializable{

    private Address address;
    private String all_grand_total;
    private double install_fee_total;
    private List<CartListBean> order_list;

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public String getAll_grand_total() {
        return all_grand_total;
    }

    public void setAll_grand_total(String all_grand_total) {
        this.all_grand_total = all_grand_total;
    }

    public double getInstall_fee_total() {
        return install_fee_total;
    }

    public void setInstall_fee_total(double install_fee_total) {
        this.install_fee_total = install_fee_total;
    }

    public List<CartListBean> getOrder_list() {
        return order_list;
    }

    public void setOrder_list(List<CartListBean> order_list) {
        this.order_list = order_list;
    }

    public static class Address implements Serializable{

        /**
         * {
         * "id": 108,
         * "customer_id": 7,
         * "first_name":x,
         * "last_name":xx,
         * "province":广东省，
         * "city":地级市,
         * "distirict":区／镇，
         * "apartment_address":具体地址，
         * "phone_no":手机号码，
         * userName"xxx
         * }
         */
        private int id;
        private int customer_id;
        private String first_name;
        private String last_name;
        private String province;
        private String city;
        private String distirict;
        private String region_label;
        private String apartment_address;
        private String phone_no;
        private String userName;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getCustomer_id() {
            return customer_id;
        }

        public void setCustomer_id(int customer_id) {
            this.customer_id = customer_id;
        }

        public String getFirst_name() {
            return first_name;
        }

        public void setFirst_name(String first_name) {
            this.first_name = first_name;
        }

        public String getLast_name() {
            return last_name;
        }

        public void setLast_name(String last_name) {
            this.last_name = last_name;
        }

        public String getProvince() {
            return province;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getRegion_label() {
            return region_label;
        }

        public void setRegion_label(String region_label) {
            this.region_label = region_label;
        }

        public String getDistirict() {
            return distirict;
        }

        public void setDistirict(String distirict) {
            this.distirict = distirict;
        }

        public String getApartment_address() {
            return apartment_address;
        }

        public void setApartment_address(String apartment_address) {
            this.apartment_address = apartment_address;
        }

        public String getPhone_no() {
            return phone_no;
        }

        public void setPhone_no(String phone_no) {
            this.phone_no = phone_no;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        @Override
        public String toString() {
            return "Address{" +
                    "first_name='" + first_name + '\'' +
                    ", last_name='" + last_name + '\'' +
                    ", province='" + province + '\'' +
                    ", city='" + city + '\'' +
                    ", distirict='" + distirict + '\'' +
                    ", apartment_address='" + apartment_address + '\'' +
                    ", phone_no='" + phone_no + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "OrderConfirmBean{" +
                "address=" + address +
                ", all_grand_total='" + all_grand_total + '\'' +
                ", order_list=" + order_list +
                '}';
    }
}
